import {RequestUtil} from '@/utils'

export class PopHttp {
    static PREFIX = "/manager/wiki/pop"

    // =========================================================================================================================
    //     查询帮助中心
    static getHelp =  (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/help/pageList` ,params)

    // 新增帮助
    static  addHelp  = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/help/add`, data)

    // 编辑帮助
    static updateHelp  = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/help/update/${id}`, data)

    // 删除帮助
    static delHelp  = (data) => RequestUtil.delAjax(`${this.PREFIX}/help/delete`,data)
}
